// 组合指标
module.exports = {
  indexIfMarketDownTrendBtbDown () {
    if (this.marketFlagInfo.indexIfMarketDownTrend) {
      if (
        this.analysisInfo1h.kdjDiff < 0 ||
        (
          this.analysisInfo1h.kdjUpDays === 1 &&
          this.tradeTime15mCycle !== 4
        )
      ) {
        return true
      }
    }
    return false
  },
  indexIfMarketUpTrendBtbUp () {
    if (this.marketFlagInfo.indexIfMarketUpTrend) {
      if (
        this.analysisInfo1h.kdjDiff > 0 ||
        (
          this.analysisInfo1h.kdjDownDays === 1 &&
          this.tradeTime15mCycle !== 4
        )
      ) {
        return true
      }
    }
    return false
  },
  isLongMarketGoodAnd15mUp () {
    if (
      this.marketFlagInfo.ifMarket4hMacdEmaAllGood &&
      this.marketFlagInfo.ifMarket1hMacdEmaHasGood &&
      this.analysisInfo15m.macd > 0 &&
      this.analysisInfo15m.ema5A10A20Days > 0
    ) {
      return true
    }
    return false
  },
  isLongMarketBadAnd15mDown () {
    if (
      this.marketFlagInfo.ifMarket4hMacdEmaAllBad &&
      this.marketFlagInfo.ifMarket1hMacdEmaHasBad &&
      this.analysisInfo15m.macd < 0 &&
      this.analysisInfo15m.ema5A10A20Days < 0
    ) {
      return true
    }
    return false
  }
}
